﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialDetail1.aspx.cs"
    Inherits="RN.ERP.Web.Material.Material.MaterialDetail1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/skins/ytblue/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="Stylesheet" type="text/css" href="../../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <script src="../../Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script type="text/javascript">
        function OpenAlert(text) {
            $.ligerDialog.warn(text);
            return false;
        }
        $(function () {

            $("#SpecTree").ligerTree({
                nodeWidth: 300,
                url: 'MaterialHandler.ashx?pid=0',
                attribute: ['nodename', 'id'],
                onBeforeExpand: onBeforeExpand,
                isExpand: function (e) {
                    var data = e.data;
                    return data.isexpand;
                },
                onCheck: onCheck,
                checkbox: true,
                single: true,
                slide: true
            });

            manager = $("#SpecTree").ligerGetTreeManager();
            function onBeforeExpand(note) {
                var data = note.data;
                //防止重复加载,使用isloaded 标记
                if ($("#" + note.data.id).data("isloaded")) {
                    return;
                }
                manager.loadData(note.target, 'MaterialHandler.ashx?pid=' + data.id);
                $("#" + note.data.id).data("isloaded", true);
            }
            function onCheck(note, checked) {
                //                $.getJSON('<%=Page.ResolveUrl("~/Person/PersonExpSpecialityInfo.aspx")%>', { "action": "GetSpecTitle", "id": note.data.id, "rand": Math.random() }, function (data) {
                //                    if (data.Result == true) {
                //                        $("#lblTitle").html(data.Message);
                //                    }
                //                });
            }

        })
        function CloseWin() {
            parent.window.CloseWin("1");
            window.parent.$.ligerDialog.close(); ////关闭dialog
            parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层
        }
    </script>
    <style type="text/css">
        .IE6png
        {
            behavior: url("\Scripts\iepngfix.htc");
        }
        .text_css
        {
            border-style: none;
            border-color: inherit;
            border-width: 2px;
            line-height: 24px;
        }
        .icon_li
        {
            padding: 0px 20px;
            background: url(\images\icon_li.jpg) repeat-x;
            float: right;
        }
        .icon_li a
        {
            line-height: 48px;
            display: block;
            color: #936205;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
        }
        .icon_li a:hover
        {
            text-decoration: none;
        }
        .dbtype
        {
            padding-right: 15px;
            display: block;
            width: 85px;
            float: left;
            line-height: 22px;
            height: 22px;
        }
        #txtAreMemo
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hdnType" runat="server" />
    <asp:HiddenField ID="hdnId" runat="server" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td width="16" class="title_lbg IE6png">
            </td>
            <td width="24" class="title_t IE6png">
            </td>
            <td width="600" class="title_libg IE6png">
            </td>
            <td width="17" class="title_rbg IE6png">
            </td>
        </tr>
        <tr id="tbCorp" runat="server">
            <td class="border_lbg IE6png">
                &nbsp;
            </td>
            <td colspan="2" style="padding-top: 16px; padding-left: 6px; padding-right: 6px;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab" style="margin-bottom: 15px;">
                    <tr>
                        <td width="30%" bgcolor="#f2f2f2">
                            <strong>物资名称</strong>
                        </td>
                        <td height="31" style="text-align: left;">
                            <asp:TextBox ID="txtMPCode" runat="server" Width="60%" CssClass="text_css"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>物资分类</strong>
                        </td>
                        <td style="text-align: left">
                            <div class="tree">
                                <ul id="SpecTree">
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>物资数量</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtMNum" runat="server" CssClass="text_css" Width="60%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>物资估算单价</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtMEval" runat="server" CssClass="text_css" Width="60%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            &nbsp;
                        </td>
                        <td style="text-align: left">
                            <asp:CheckBoxList ID="cbInfo" runat="server">
                                <asp:ListItem Value="1">是否可转资产</asp:ListItem>
                                <asp:ListItem Value="2">是否借用</asp:ListItem>
                                <asp:ListItem Value="3">是否销售</asp:ListItem>
                                <asp:ListItem Value="4">是否出样</asp:ListItem>
                            </asp:CheckBoxList>
                            <asp:TextBox ID="TextBox3" runat="server" CssClass="text_css" Width="60%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            物资图片
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="TextBox4" runat="server" CssClass="text_css" Width="60%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>备注</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtAreMemo" runat="server" TextMode="MultiLine" Width="50%" Height="100px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top: 15px;">
                    <tr>
                        <td width="200">
                            &nbsp;
                        </td>
                        <td width="100" style="text-align: center;">
                            <div class="icon01 IE6png">
                                <asp:LinkButton ID="LButSave" runat="server" ValidationGroup="aa" OnClick="lbtnSave_Click">保存</asp:LinkButton>
                            </div>
                        </td>
                        <td width="100">
                            <%-- <div class="icon02 IE6png">
                                <asp:LinkButton ID="lbtnReturn" runat="server" CssClass="return_a" ClientIDMode="Static">返回</asp:LinkButton>
                            </div>--%>
                        </td>
                        <td width="200">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td class="border_rbg IE6png">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="border_lconer IE6png" headers="17">
                &nbsp;
            </td>
            <td colspan="2" class="border_bottomli IE6png" height="17">
                &nbsp;
            </td>
            <td class="border_rconer IE6png" headers="17">
                &nbsp;
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
